package Demo1;

public class Staff {
    public String staffID;
    public String staffName;
    public char gender;
    public int seniority;
    public double baseSalary;
    public double maritPay;

    public Staff(String staffID, String staffName, char gender,
                 int seniority, double baseSalary, double maritPay) {
        this.staffID = staffID;
        this.staffName = staffName;
        this.gender = gender;
        this.seniority = seniority;
        this.baseSalary = baseSalary;
        this.maritPay = maritPay;
    }

    public void work(){
        System.out.println("正在工作。。。");
    }
    public double getPaid(){
        double money=baseSalary+maritPay;
        return money;
    }
}
